package com.power.powercash;

/**
 *
 * @author f6036477
 */
public interface CompareDouble
{

  public static interface CompareDoubleMethod {}

  public static class CompareEquals implements CompareDoubleMethod {}

  public static class CompareBigger implements CompareDoubleMethod {}

  public static class CompareSmaller implements CompareDoubleMethod {}

  public static class CompareBetween implements CompareDoubleMethod {}


  public static final CompareEquals COMPARE_EQUALS = new CompareEquals();

  public static final CompareBigger COMPARE_BIGGER = new CompareBigger();

  public static final CompareSmaller COMPARE_SMALLER = new CompareSmaller();

  public static final CompareBetween COMPARE_BETWEEN = new CompareBetween();


  public CompareDoubleMethod getCompareDoubleMethod();

  public void setCompareDoubleMethod(CompareDoubleMethod compare);

  public boolean match(double d1, double d2);

  public boolean match(double d1, double d, double d2);

}
